package com.whmskj.xjlhsc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whmskj.xjlhsc.entity.ACThatDay;
import com.whmskj.xjlhsc.mobie.equipmentManage.entity.dto.ACThatDay5Dto;
import com.whmskj.xjlhsc.mobie.equipmentManage.entity.dto.DeviceMinTimeDto;
import com.whmskj.xjlhsc.mobie.equipmentManage.entity.vo.ACThatDayVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 张
 * @version 1.0
 */

@Mapper
public interface ACThatDayMapper extends BaseMapper<ACThatDay> {
    /**
     * 温湿度趋势
     * @param mesIds
     * @param machinenumbers
     * @param startTime
     * @param endTime
     * @return
     */
    List<ACThatDay> selectACThatDay(@Param(value ="mesIds") List<Integer> mesIds,
                                    @Param(value = "machinenumbers") List<String> machinenumbers,
                                    @Param(value = "startTime") String startTime,
                                    @Param(value = "endTime") String endTime);

    /**
     * 按天
     * @param mesIds
     * @param machinenumbers
     * @param startTime
     * @param endTime
     * @return
     */
    List<ACThatDay> selectACThatDay2(@Param(value ="mesIds") List<Integer> mesIds,
                                     @Param(value = "machinenumbers") List<String> machinenumbers,
                                     @Param(value = "startTime") String startTime,
                                     @Param(value = "endTime") String endTime);

    /**
     * 按月
     * @param mesIds
     * @param machinenumbers
     * @param startTime
     * @param endTime
     * @return
     */
    List<ACThatDay> selectACThatDay3(@Param(value ="mesIds") List<Integer> mesIds,
                                     @Param(value = "machinenumbers") List<String> machinenumbers,
                                     @Param(value = "startTime") String startTime,
                                     @Param(value = "endTime") String endTime);

    /**
     * 查询
     * @param machinenumber
     * @return
     */
    List<ACThatDayVo> selectACThatDay4(@Param(value = "machinenumber") List<String> machinenumber);

    List<DeviceMinTimeDto> selectDeviceMinTime(@Param(value = "machinenumber") List<String> machinenumber);

    List<ACThatDay5Dto> selectACThatDay5(@Param(value = "deviceMinTimeDtoList")List<DeviceMinTimeDto> deviceMinTimeDtoList);

}
